/********************************************************************
	created:		2009:1:15   19:00
	filename: 	Builder.h
	author:		kong
	E-mail:		guoqing.kong@gmail.com
	purpose:	builder
*********************************************************************/

#pragma  once
#include <string>
#include <vector>
#include "crawler.h"
#include "parser.h"
using namespace std;


class Builder
{
public:
	Builder(){};
public:
	virtual    ~Builder(void){};

public:
	virtual int makeCraw(string fromCity, string toCity, string date ) = 0;
	virtual int getContent() =0;
	virtual int makeParse(string fn) = 0;
public:
	vector<string> m_rc;
	string    content;
	string    m_url;
};

class Builder_58com
	: public Builder
{
public:
	Builder_58com()	{}
	~Builder_58com(){}

public:
	int makeCraw(string fromCity, string toCity, string date);
	int getContent();
	int makeParse(string fn);
public:
	vector<string> rc;
	Crawler_58com tc;
	Parser_58com tp;


};